﻿<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>员工表</title>
	<style>
		*{
			margin: 0px;
			padding: 0px;
		}
		div{
			width: 1200px;
			margin: 0px auto;
		}
		h1{
			text-align: center;
			margin: 25px 0px;
		}
		table{
			text-align: center;
			border-color: #2894ff;
			line-height: 60px;
		}
		.tr{
			background-color: #00ffff;
		}
		table tr td a{
			text-decoration: none;
			color: #000;
		}
		table tr td a:hover{
			color: blue;
			text-decoration: underline;
		}
	</style>
</head>
<body>
	<div>
		<h1>员工信息列表</h1>
		<table border="1" width="90%" cellspacing="0">
			<tr class="tr">
				<th>ID</th>
				<th>姓名</th>
				<th>所属部门</th>
				<th>头像</th>
				<th>出生日期</th>
				<th>入职日期</th>
				<th>相关操作</th>
			</tr>
			<?php
				foreach ($h as $a)
				{
			?>
			<tr>
				<td><?php echo $a["e_id"]?></td>
				<td><?php echo $a["e_name"]?></td>
				<td><?php echo $a["e_dept"]?></td>
				<td><img src='<?php echo $a["e_img"]?>'.jpg /></td>
				<td><?php echo $a["date_of_birth"]?></td>
				<td><?php echo $a["date_of_entry"]?></td>
				<td>
					<a href="#">编辑</a>　
					<a href="#">删除</a>
				</td>
			</tr>
			<?php
				}
			?>
		</table>
	</div>
</body>
</html>